﻿#ifndef ALGO_ARM_FORM_H
#define ALGO_ARM_FORM_H

#include <QWidget>
#include <QJsonObject>

namespace Ui
{
    class Algo_Arm_Form;
}

class Algo_Arm_Form : public QWidget
{
    Q_OBJECT

public:
    explicit Algo_Arm_Form(QString chnid, QWidget *parent = nullptr);
    ~Algo_Arm_Form();
    static bool mode_setCorrectZone;


private slots:

    void on_btn_getparam_1_clicked();

    void on_btn_setparam_1_clicked();

    void on_btn_getparam_2_clicked();

    void on_btn_setparam_2_clicked();

    void on_cbx_eventtype_currentIndexChanged(int index);

    QStringList type();

    void InputValidator();

    void on_btn_clear_people_count_clicked();

    void on_btn_GetPileCoalParam_clicked();

    void on_btn_SetPileCoalParam_clicked();

    void on_btn_SetAlgoPeopleCountMax_clicked();

    void on_btn_cleardevpeoplecount_clicked();


    void on_btn_GetAlgoPeopleCountMaxByTime_clicked();

    void on_btn_SetAlgoPeopleCountMaxByTime_clicked();

    void on_btn_SaveScenePicture_clicked();



    void on_btn_scale_100_clicked();

    void on_btn_scale_150_clicked();

    void on_btn_scale_200_clicked();

    void on_btn_compare_cancel_clicked();

public slots:
    void  onGetAlgoParam(QJsonObject obj);

    void onGetAlgoPeopleCountParam(QJsonObject obj);

    void onAlgoPeopleCountMaxChanged(QJsonObject obj);

    void onGetAlgoPeopleCountMaxByTime(QJsonObject obj);



signals:
    void sigSendParam(QString method, QJsonObject body);
    void sigSetPileCoalParam();
    void sigSetCompareZone(int width);
private:
    Ui::Algo_Arm_Form *ui;
    QString m_chnid;
};

#endif // ALGO_ARM_FORM_H
